package some.list.dao;

import java.util.List;
import java.util.Map;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Component;

import some.list.domain.ProfilCommand;

@Component
public class AllListDaoImpl extends SqlSessionDaoSupport implements AllListDao{

	@Override
	public List<ProfilCommand> list(Map<String, Object> map) {
		List<ProfilCommand> list = getSqlSession().selectList("AllListDao.selectList", map);
		return list;
	}

	@Override
	public int getRowCount(Map<String, Object> map) {
		return getSqlSession().selectOne("AllListDao.selectCount", map);
	}

	@Override
	public ProfilCommand getProfil(String detail_id) {
		 return getSqlSession().selectOne("AllListDao.detailProfil", detail_id);
	}
	@Override
	public void setFListView(String id) {
		getSqlSession().update("AllListDao.setFListView", id);
	}
	@Override
	public void setYListView(String id) {
		getSqlSession().update("AllListDao.setYListView", id);
	}
}
